/*
 * @Author: yudj
 * @Date: 2020-07-17 15:56:21
 * @LastEditTime: 2020-07-22 14:29:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_test\src\common\js\env.js
 */ 

 /*
 * 配置编译环境和线上环境之间的切换
 * baseUrl: 域名地址
 * routerMode: 路由模式
 */
// let baseUrl = 'http://123.56.16.183/v1/auth/';
let baseUrl = 'http://127.0.0.1/';
let routerMode = 'history';
let DEBUG = false;
let cancleHTTP = [];//取消请求头设置；
//注：下面的baseUrl地址为假地址，只是模拟的，无法调通。
console.log(process.env.NODE_ENV)
if (process.env.NODE_ENV == 'development') {
   baseUrl = "";
//    baseUrl = "http://192.168.215.232:9001";
   // baseUrl = "http://103.10.87.52:12284";
   DEBUG = true;
}else if(process.env.NODE_ENV == 'production'){//生产
   // baseUrl = "http://10.3.23.124:9001";
  baseUrl = "http://http://192.168.137.101:9001";
   DEBUG = false;
}else if(process.env.NODE_ENV == 'sit'){//集成测试
   // baseUrl = "http://103.10.87.52:12284";
   baseUrl = "http://10.3.23.128:9001";
   DEBUG = false;
}

export{
   baseUrl,
   routerMode,
   DEBUG,
   // ROLE,
   cancleHTTP
}
